<?php
namespace Orx\Kpi;
/**
 * Kpi Periodicity
 * Use has the calcul base, can be Day, Week, Month or Year
 * 
 * @property int	$periodicity
 * @property string $language
 * @property string $label
 * @property int	$value
 */
class Periodicity extends \Fox\Object\Customizing {
	/**
	 * Day
	 * @var int
	 */
	const DAY = 1;
	
	/**
	 * Week
	 * @var int
	 */
	const WEEK = 2;
	
	/**
	 * Month
	 * @var int
	 */
	const MONTH = 3;
	
	/**
	 * Year
	 * @var int
	 */
	const YEAR = 4;
}
\Fox\Dao::infos(Periodicity::className(),new \Fox\Object\Info('kpi_periodicities', \Fox\Databases::DB_APP));
// Link To I18n
\Fox\Object\Links::add(\Fox\Dao::link(Periodicity\I18n::className(), Periodicity\I18n::LINK_TO_PARENT)
->to(Periodicity::className(), Periodicity::LINK_I18N)
->on('periodicity')
->versionFrom());